gdkwindow: store shadow sizes
authorWilliam Hua <william.hua@canonical.com>
Thu, 16 Jun 2016 15:20:35 +0000 (11:20 -0400)
committerWilliam Hua <william.hua@canonical.com>
Tue, 19 Jul 2016 13:38:54 +0000 (09:38 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=756579

gdk/gdkinternals.h
gdk/gdkwindow.c

index 33aca335ce8123340838f65a6ec9a1598261d9c8..1efa75e57508336c2e795f37c1e80e036a34c7e2 100644 (file)
@@ -356,6 +356,10 @@ struct _GdkWindow
 
   gint abs_x, abs_y; /* Absolute offset in impl */
   gint width, height;
+  gint shadow_top;
+  gint shadow_left;
+  gint shadow_right;
+  gint shadow_bottom;
 
   guint num_offscreen_children;
 
index 5e91fcc884ab9fc1402cc10df8e063a6c88009af..04fb29c2bc3a9545b393c104e5e9b06e3d7ab4c4 100644 (file)
@@ -11771,6 +11771,11 @@ gdk_window_set_shadow_width (GdkWindow *window,
   g_return_if_fail (!GDK_WINDOW_DESTROYED (window));
   g_return_if_fail (left >= 0 && right >= 0 && top >= 0 && bottom >= 0);
 
+  window->shadow_top = top;
+  window->shadow_left = left;
+  window->shadow_right = right;
+  window->shadow_bottom = bottom;
+
   impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
 
   if (impl_class->set_shadow_width)